package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperWebMessage implements Serializable {
    /**
     * 自增ID
     */
    private Integer id;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 类型：1推送消息 2回收消息 3兑换消息
     */
    private Integer type;

    /**
     * 状态：0正常 1已删除
     */
    private Integer status;

    /**
     * 消息接收人
     */
    private String recipient;

    /**
     * 关联订单号ID
     */
    private Integer orderId;

    /**
     * 是否查看 0未读 1已读
     */
    private Integer isView;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 网点id   0 全部  1全部企业用户  2全部居民     其它。。。
     */
    private Integer sId;

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 消息标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 消息标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 消息内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 消息内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 类型：1推送消息 2回收消息 3兑换消息
     */
    public Integer getType() {
        return type;
    }

    /**
     * 类型：1推送消息 2回收消息 3兑换消息
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 状态：0正常 1已删除
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态：0正常 1已删除
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 消息接收人
     */
    public String getRecipient() {
        return recipient;
    }

    /**
     * 消息接收人
     */
    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    /**
     * 关联订单号ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 关联订单号ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 是否查看 0未读 1已读
     */
    public Integer getIsView() {
        return isView;
    }

    /**
     * 是否查看 0未读 1已读
     */
    public void setIsView(Integer isView) {
        this.isView = isView;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 网点id   0 全部  1全部企业用户  2全部居民     其它。。。
     */
    public Integer getsId() {
        return sId;
    }

    /**
     * 网点id   0 全部  1全部企业用户  2全部居民     其它。。。
     */
    public void setsId(Integer sId) {
        this.sId = sId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", type=").append(type);
        sb.append(", status=").append(status);
        sb.append(", recipient=").append(recipient);
        sb.append(", orderId=").append(orderId);
        sb.append(", isView=").append(isView);
        sb.append(", createTime=").append(createTime);
        sb.append(", sId=").append(sId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebMessage other = (SuperWebMessage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRecipient() == null ? other.getRecipient() == null : this.getRecipient().equals(other.getRecipient()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getIsView() == null ? other.getIsView() == null : this.getIsView().equals(other.getIsView()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getsId() == null ? other.getsId() == null : this.getsId().equals(other.getsId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRecipient() == null) ? 0 : getRecipient().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getIsView() == null) ? 0 : getIsView().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getsId() == null) ? 0 : getsId().hashCode());
        return result;
    }
}